package com.arctan.mhxy_utils_android.db.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import com.arctan.mhxy_utils_android.db.entity.GoldToRmbEntity;

@Dao
public interface GoldToRmbDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    long inseartAndUpdateGoldToRmb(GoldToRmbEntity goldToRmbEntity);
    @Query("SELECT * FROM GOLD_RATE WHERE gold=:goldgold")
    GoldToRmbEntity getGoldToRmb(int goldgold);

}
